I believe I have found a solution to the lag, "Graphics acceleration" being enabled in my browser settings made the game run just fine after at first going at less than 1 frame a second and trying to kill my cpu.