Removing excess jQuery calls