added setTimeout to not interfere with requirejs