This is an extension to javascript Class for OOP