Update functions.php

Added dependencies to the register functions that call the plugins.js and functions.js files.