JS Object dynamic with URI autorefresh