Inline javascript functions within a file (inline expansion)