apply commit https://github.com/oberhamsi/gamejs/commit/9eda5ebcdd10421e9bf609c330a023e4051b8110