Convert checkType() function to jQuery
Convert toggleType() to jQuery (Delayed Moderation context)
Inline javascript updates