Removed inline onClick events for print and social
Consolidated functions and grouped with namespaces