API Documentation Boxes Expand Properly

#1597

Documentation boxes used to expand on click - this behavior stopped some time a couple of weeks ago. This is now fixed and the boxes properly expand and hide themselves on click. I have not figured out why they stopped working in the first place. I also couldn't locate a file that had any CoffeeScript pertaining to this, so I added api.js.coffee with the eight line fix.

This is a duplicate of an earlier pull request because I managed to accidentally close the previous one.