adding javascript for accordion