unity doesn't only support unityscript (it's quite different from javascript!) but also c# and boo. there you could add your own properties that wrap the transform methods and then you can also do:

my.x+=5;
my.pan+=5;