http://www.codeasify.com/blog/javascript-refresh-method/
Checkout this amazing article