javascript based semi-ai robot