Maintained functionality with just JQuery and no custom libs