Change to be Firefox compatible

Enable to close #3 and maybe #4 (I haven't done tests on all browsers)