modularized the plivo call methods to call.js