js array creation now works