example2 with js