Moved scroll to top from on_loading function

Also changed the name of handlehash to load_medicines. This function is now responsible for queries that reload the medicines list, e.g. #search and #related