added AJAX for posting forms. Test with poltergeist still failing