Fixed bug that was breaking the plugin in Firefox

Fixes #3