Fixed a crashing issue with auto completion. 

Fixed an issue where using square braces, or any other invalid Regex character causes a crash when trying to auto complete.

  completion.js:
    - added an escape function and escaped the auto complete string
	before passing it to dotCompletion.