adds code to load dependencies for the script