added the final score, refactored js's and organized project.