update middleware function to append to existing middlewares

`grunt server` was throwing an error:

    TypeError: Object /Users/edeustace/dev/github/edeustace/summernote has no method 'charAt' at exports.normalize (path.js:336:27)

This fixes it.