Add a resource for JavaSript.