Fixed score counting not working in firefox