make local.js and server.js runnable