Improve resizing speed by using a variable instead of calling a jquery function