Javascript implementation of ICFP competition emulator