add javascript post aggregator

- js post aggregator
- support for chaining having clauses