refresh the logic of destroy
refine code
add the options for jshintrc
fix timer bug