js listing 7.4 extending the string object