Create accordion.js

JavaScript for the accordion.