`var div = $('<div />');`
I know, not your code ;)