OK!
I found need one more step: delete this.Ammo=b; in ammo.js, otherwise will cause an error. Seems to work fine:
this.Ammo=b;
demo
code