fixed string function getter in js