change javascript DOM to jQuery and add effects