Moved the mouse handler outside of the 'createSchedule' routine so it's not being assigned every time... Not sure if it's the best way... Added a minified version and changed internal variable names to enable quicker compression.