Added changes to restless.js