Correct bug on require customloc.js