Updated with fix for Firefox.

 Javascript halts on errors. Added content type.