fixes on location js files