A Symfony2  Direct Web Remoting Toll That will be able to convert controllers response in javascript methods.