refactored ajaxifySubmit to allow deep-linking on submit and on keyup as well