restored old javascript code

Subhajit Sahu. 19 Jan, 2013.