Fixes on game submit javascript bug