Move measure JS libraries to assets rather than custom controller
Tweak caching config to improve performance
Add Apache JS and CSS compression to improve performance
Tweak calculation code rendering to ensure JS content-type