Add some more tests, fix javascript lint stuff.