practicing coding oo js and ajax