server start-up script, creates javascript config file so paths are correct