Copmparaison between js script and direct object tag