How do I use my object property inside a function of a method that belongs to the same object