Third Commit: Cleaned up JS and made it look nicer