Using Firebase (https://www.firebase.com/index.html) as your backend, you can write entire applications in JavaScript without any server code. It also provides a Node module if you want to run your own servers: https://www.firebase.com/docs/nodejs-quickstart.html