Cleaned up code

- fixed typos
- removed _loadJS() method
- cleaned variable declarations
- fixed _getShareUrl() to return a string instead of calling _popup() directly