replace jQuery with native browser APIs