Browser compatibility bugfixes
Merge pull request #41 from PencilCode/bugfix

Browser compatibility bugfixes