fixed issue with array - was trying to use Obj-C syntax with JS array