Ported to vanilla JS.

JQuery is no longer required.