That should be a few dozen lines of vanilla JavaScript.