custom version of pplog, using jquery