try js location format