JavaScript String object : substring() method