Added Http request and ajax calls to work with node.js server