Make require.js variable declarations ambient.

Additionally, fix line endings (windows -> unix style)