added javascript functionality with yu and di some work on the controlle...

...r