add requirejs plugin for replacing global variables with required module