Linted, moved shared functions to kbn object
Merge pull request #241 from rashidkpc/master

Linted, moved shared functions to kbn object