add dependencies to an array prior to directive function to work with minification