Creating a score.js file 

Moving the score from main.js to score.js

Moreover change "score" object name to "Score"  with a capital S to match with other objects (Screen, Sprite Pad...)