Added option to hide search and nav in presence of advanced JS