Refreshed call to javascript