Fixed Size Array Javascript Function Declaration