Fix javascript errors
Fix javascript errors