refactored npm package to support both phrase and location based search

Summary:
refactored to support both phrase and location based search
lint fixes, ignore .idea IDE files
update readme for new search methods

Test Plan: ensure npm package still works as intended

Reviewers: mbishop

Reviewed By: mbishop

Differential Revision: https://hq.passmarket.com/D1082