Rename a bunch of stuff, add some initial tests, add jshintrc, minor refactors