ported locations.js and converted name of julianDate to date