Moved assets.js back out into separate file