[bug981357] - Moved inline friendlycode script into separate js file

[bug981357] - removed useless comments

[bug981357] - wrapped in function to keep variables local

[bug981357] - fixed url for remixURLTemplate
Merge pull request #389 from admix/bug981357

[bug981357] - Moved inline friendlycode script into separate js file