add to-js function to convert to rhino datastructures

thanks clojure.data/json for the inspiration