update whif
applied jshint
adj title
refac & jshinted debug