JS version of War