I wanted to make a generic version for it, but with Angular 2 and all, didn't get to it. this shows a working version: