Refactored some filter.js code and added category & parallell environment fields to compact JSON format.