Javascript Split Method Explanation