added curry method from https://github.com/eborden/js-currya