[PL] [69575420] Refactor for optimization

- added util js
[PL] [69575420] Updated not to use this.

- make it compatible with sites that do not use flight.js
[PL] [69575420] updating code format
[PL] [69575420] Updating namespace
[PL] [69575420] Updating function names

- simplifying some calls
- fixing spelling errors
[CW] [69575420] Typo and remove unused i var
[CW/PL] [69575420] Simplify
[PL] [69575420] Compiling coffeescript
[PL] [69575420] Removing extra spces
Merge pull request #1 from primedia/pl_refactor

[PL] [69575420] Refactoring for optimization