remove score element creation from script and place it in html