Seebattle in JavaScript