fix js in cocoon insert