support slim in js templates