Made node.js script to generate bg.js from images