Refresher, JavaScript