javascript changes routing angular