Fixed the javascript error on create content page