A compliant ad server written in Javascript