adding survey extension to angularjs