adding some js functionality to accoridon