Added functionality to hide nav buttons based on browser's javascript support