fix #80

made some basic tests, need to test in several browsers