added js for publishTypeEdit