Erlang JavaScript Transformation