what do you think about caching `$( w )` and then use variable instead of executing `$()` function three times in the method?