separating main.jsand add high scores"