Js Class in order to deal with parabolas