Support html5mode(true)

Added rewrite support to grunt in order to make #75 easier to handle.
My bad, I copied and pasted the function from a modified project of mine.  This isn't needed in the default setup you provide.  Will update the PR.