add poly block and javascript