Make patch.js JSHint clean part 1
escape/unescape is obsolete functions
Escape dot correctly