Tweaking Resources.js

Some weird code breaking in the background of the pages causing .js to
be printed into the body.