adds setOptions method on the Element