we should be able to set the type of the returned data but for now text/javascript is ok