fixed location pathname in javascript