I think you are mixing up languages.
The dynamic keyword is in C#. You'll need to pass the C# variable values to the browser if you want JavaScript to add the numbers. If you want to add in javascript you have to do something like:
<script language = "JavaScript" >
var Calculator =function ADD(int x,int y)
{
return x+y;
}
Calculator('<%=Value1.ToString()%>', '<%=Value2.ToString()%>');
</script>
This is assuming Value1 and Value2 are numbers (int, short etc.);
http://www.hanselman.com/blog/C4AndTheDynamicKeywordWhirlwindTourAroundNET4AndVisualStudio2010Beta1.aspx
Looking at the blog entry, you can do it if there is a .net implementation of the language (like python) using the dynamic keyword.
EDIT: Here is a link to the CodePlex project to put a JavaScript implementation on top of the DLR.
http://javascript.codeplex.com/
With this, using the dynamic keyword should be possible.