Update mim.js
Update mim.min.js
Update mim.js

Though this logic increases the size of the file it works faster than the old logic.
Update mim.min.js
Merge branch 'master' of github.com:MContagious/mim