Update navigate.js

modify the defaultInsertFunction : instead of just a html, it is now an array 
{
 html : the html to insert,
 scripts : the scripts that are in the html
}
this is neededwhen you subselect elements inside that html, cause when you do that the scripts are removed