Change createDiv functions to jquery