conditional script loading in layout
Add mongo and mongoose