reorganized code
clean up code more
kill jquery event queue