refactor entityselector.js + fix indentiation
Merge branch 'review' of https://github.com/Wikidata-lib/property-suggester into review