Code for js testing talk