Refactored to use JQuery | Added parent Namespances