Fixed small formatting errors

Fixed some small format errors in javascript page