Cleans up outerHeight and fixes global regex for removeEmpty