add global variable "require" index.html ready() so IDE can compile.