initializes browser location onload