Bug 840455 - optimize JS only in production builds r=vingtetun

- turn off the aggregation in non-production and debug builds