JSHint fixes, and getting the tests running on sauce