An implementation of the LC-2 processor in javascript