Use correct content type for JavaScript
Merge pull request #2 from bluesmoon/patch-1

Thanks !