Replaced several calls of DOM.createElement with jQuery calls.