fix javascript for sections