updated peeps reference implementation (jquery)