Method rewrite middleware for older browsers  #11
Imports should be sorted in lexicographical order

/cc @viobo