Array Within Array Javascript Function Syntax