Put values from phalcon to javascript (arrays to objects)