simple jquery functions replaced by clean js