Javascript 15 Puzzle