fix js to begin game