this is a overall best version for now, use e.preventDefault() and return false together to disable page reload by press enter/go button on keyboard