replace data attribute in <object> tag

Fix for #401