move score.js stuff here