Add some compatibility and add initial tests.html and tests.coffee