JavaScript Restful API builder