javascript function library for waila nbt