Modifying return type to application/javascript