image tag added to js file