code cleanup, re-build mice.js and sync dev code