Update output.js

Changed so it's compatible with google chrome