Formatted code and broke apart JavaSCript files to new class, cleaned up code.