Split up javascript files as they were getting unwieldy