Vanilla JS plugin implemented