Moving JS to a file, let's see if travis likes this better some how...