implemented javascript test in cucumber as part of edit_profiles feature tests
added test for index action in profiles controller, corrected small mistake in profiles controller, added gem for covering ajax tests on mac