Creating a proper build script in JS.