[#230] Fix javascript concatenantion of API call arrays

The all projects map is not showing all pins, in fact it's only showing
the first 1000. This is because of a bug in how the two data arrays are
concatenated. Now fixed.
[#223] Fix empty array creation

In PHP v5.4 arrays can be created using $arr = []. Not so in v5.3 where
it must be $arr = array(). The Ububntu machines run PHP 5.3. Not so my
mac.