Base solution for war.js, initial rewrite