update optional question hiding javascript to handle re-numbering