Update parse-location.js

All the test cases pass.