Update battlescript_base.js