Useing javascript settrers and getters