Fixing the splice usage to conform to ECMAScript 3rd Edition standard.