Added simplified calling convention

Allow callers of Apply to simple pass the template, the JavaScript
object and the "success" handler in a simplified calling convention.