final javascript for  pok and lizzerd