rename server.js to local.js, fix local.js to work on local files