Push Array Statement Javascript Substring Syntax