Correction to javascript

Correction to javascript