add score.js
 calculate score and display score