scorecard javascript WIP