Wrap javascript so we don't pollute the global environment