cleaning up js w/ classes