How can I create static variables in Javascript?
There is no such thing as an static variable in Javascript. This language is prototype-based object orientated, so there are no classes, but prototypes from where objects "copy" themselves.
You may simulate them with global variables or with prototyping (adding a property to the prototype):
function circle(){
}
circle.prototype.pi=3.14159