update the js used in the example