Clean up JavaScript files
Move fight logic to server-side