use modx's core output filter

use "apply" to all the JS configs