Replaced navigator.isCocoonJS with game.device.cocoonJS on System