Backported javascript module from master.
atmosphere.js: Changed version.
Merge pull request #1118 from slovdahl/atmosphere-1.0.x-javascript

Atmosphere 1.0.x javascript.js module
Fixes #1119
Fixes #1120
Bump version, port fixes to atmosphere.js