Space Battle remake in javascript