Organize & Bug Fixes

Organize
- Code organize has completed.
- Errors in the code has corrected(received help from JsHint).
- unnecessary functions has removed.
Bu Fixes
- Submit bug has fixed