edited javascript for restart-button