replaced global $input by plugin property this.$
put local variable into closure, removed unecessary value changes, shortened var name
(wip) new method to handle hinting in a more generic fashion