fix typo in manifest
simplify sanitize regexp and pre-compiled it
refactor dblClick stuff