only scroll to active navigation entry when it is not in view, if debug mode is defined, dont included minified scripts