switch to using jQuery; refactor jQuery var into const