Erlang interoperability with Javascript