fixed #10
fixed #9
fixed #8
jsHint validation