Update navigate.js

add customData to navigate and refreshInsertFunction to associate any js object to each history state