added CORS config to nginx, fed node script updates