Passive localization JavaScript library