Cleaned up duggasys.js