Update rest.js

Removed debug stuff