Asp.net ajx supporting custom Classes and NameSpaces. We can declare a class and use it object in another place. We can also store the values to this object and later can use for other purposes. I am here decalring a custom class inside a custom ajax library. Then using that class in another javascrit. You peole need to try to elaborate this class with more functionalities. I am trying to give you a good start.