Clean generated JS, modularize properly filters & directives