Refactor gps_server.js
Fix merge