Code refactoring - clearing console.log; - caching variable in jQuery;