LSP: moved function to functions.js + minor style change
Embed code fix