Support html5mode(true)

Added rewrite support to grunt in order to make #75 easier to handle.
Not following the regex at the beginning here.  Whats the intention?