Node JS controller