Moved rich text js from head to body