change "var Stats" to "window.Stats" to make compatible with requirejs