Update optmein.js

Better Firefox support