adapting do.js for new API
RESTful API controller
Implemented API Function
Merge branch 'tubes4'