Effortlessly manage players progress in javascript