Fixed some javascript errors
Fixing some javascript errors