add time refresh into js.tpl.php