Cleaned up the JS files for proper formatting

Cleaned up the code formatting