make JS into jQuery