a function to reload any element with jquery