Fixed the hardcoded sharing link with javascript
Python code converted to PEP8