Forgot how to JS for a while; works, still WIP

Bug: One of the example alerts doesn't
remember its open state.