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