cleaned requirejs setup ... extracted anonymous method