cleaner JavaScript formatting