Attempting JSONP request in mainController instead of just $http

Getting this error: TypeError: Object #<Object> has no method 'replace'