Reduce javascript to test performance.