Add alternative method for legacy browsers