Extracting DOM helpers in a separate library