fix #320 bug ui.keyCode enum
define escapeRegex function

https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.autocomplete.js#L567
removing undeclared variable