command tanks with javascript