Integrating rest.js