Javascript plugin to handle toggling of an element from "open" to "close".