Basic HTTPS implementation of web service in Node.js