suggested solution in #73 implemented as pull request
fix errors in some browsers
Merge pull request #130 from k2s/hokan

suggested solution in #73 implemented as pull request