Update memrise-latex-integration.user.js

Added a new state-checking loop.  Seems to work now.