server.js works as script