Fixed player so that js will compile