The Requirement :
To implement a department hierarchy structure using Employee information maintained in SharePoint Lists.
Solution and Implementation:
So rather than implementing a pure jquery solution , I saved myself some time and instead used Nintex runtime functions to retrieve the user profile properties from the user profile (sync to active directory).
Please refer my blog-post to see the implementation :
Please add in your feedback if any !