Rubik's Cube in Javascript