SailsJs integration with AngularJs