Add loading mask while waiting for current position and JSLint the files