in function setOptions(): surrounded attribute values (e.g., 'title') with double quotes; added 'target' to list of attributes accepted