frame js calculates the score also itself