C# to JS small error

I am trying to convert a c# script to js and it gives me an error that doesn't make sense to me:

            Vector2 bumpOffset = treadLeft.renderer.material.GetTextureOffset("_BumpMap");

this is the code; and this is the error:

";' expected. Insert a semicolon at the end.

Obviously the ";" is there so I should be doing something else but not sure what : )

In JS it should look like this:

var bumpOffset : Vector2 = treadLeft.renderer.material.GetTextureOffset("_BumpMap");

indeed i second the above.