refreshes javascript