Fix regression caused by typo setting prototype member on NamesApi. Re-order definitions in defaultWiring.js and include a script tag for it in the unit tests' idex.html