JavaScript clean-up (Code conventions, cross-browser fixes and JSHint validation)