Even native apps have limitations to run in background, so Web/HTML5 applications would likely get paused when they get minimized on mobile platforms. It is understandable for battery saving concern etc.
Maybe one workable solution is to use some sort of timestamping techniques such that next time when the app wakes up, it knows that some time has already elapsed and the game behaves as required e.g. completing a game task etc.