find & replace w/ javascript & regex

- added console logging
- got global find/replace working for wildcards

- still only works for first query
- fairly sure special characters aren't being escaped correctly.