Code Refactoring the UI Widget script files

Have made the code changes to the following UI widget script files.

Refactored and JSLinted the code for the following widgets.

 1. PostWidget 
 2. ShareWidget 
 3. FollowWidget