refactoring location.js with Bill
bill and Fai solved location.js and hardwareDetection.js
ros' thing added