Fixed issue on navigation js that was causing pdf to fail to render