updating Base.php and drepos.js so that includes work.