Got survey creation javascript to work.
User can now create survey
User can now create survey