phoboslab/Ejecta — pull request #413 by wizcorp-olivier (2014-07-24 09:41:12+00:00)
Title: Fix console.log & others to work more like expected

This PR will allow JS console.log (or console.warn, etc.) to work more as expected.
Example below will now work fine:
```javascript
var index = 5;
var map = { x: 3, y: 5 };
console.log("My map is:", map, "and index is", index);
```

Note that another way to write "_log" was as below but I find it a bit less readable and it is less efficient as well:
```javascript
var toStr = function (p) { return typeof p === 'string' ? p : JSON.stringify(p); }
args = Array.prototype.slice.call(args, 0);
var txt = args.map(toStr).join(' ');
```