adding js as an external resource