Cleaning up js a bit before adding functionality.