correct bug on require customloc.js