A JavaScript location library