Major rework to dump JavaScript in favor of Erlang