Update navigate.js

fix inline scripts even for specific ajax-content