{Update} add jshint options: browser, devel
{Update} Remove document var
{Fix}  method conditional bug.