Added renderRemotePage()

renderRemotePage() can be used to return javascript for AJAX calls