expose JavaScript.toString and fromString