token name made configurable in js, issues fixed