add resources javaScript