POC https://jsfiddle.net/2uwhqccc/