rewrote the build file in JS.
Adds the express development server logic.