General bug fixes regarding certain functions

- Redundant data passed into clickInteraction, format of array passed
now more logical.

- displayAlert was using an id instead of a class, which caused problems
when creating/updating another instance.

TODO: fix bug where setTimeout does not last full duration when fired in
rapid succession.