Changed to JS calling convention

I assume the Clojure calling convention is incorrect here.
Merge pull request #13 from ulsa/patch-3

Changed to JS calling convention