small cleanup
Modifications in javascript