improve how templates work with browserify