Fixing asset insertion javascript to be compatible with trusty's now-default CKEditor.

BugzId: Issue #7