clean functions.php and minify javascript dependencies