Added stuff the the created file to make it work with require.js