Fixed #3 Replaced underscore with native functions and removed unecessary dependency