Compiling the Vis.js selection bug into the payloads.