added type attribute to object tag