Add ajax URL and redirectTo helper functions