Pure Javascript implementation of the SSP side of RTB