Fixes #121 fixed typo in javascript code for collecting javascript errors