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