javascript fix: set location