Update daytrotter.js

Better style modified check, removed dead code, modular.