Bug Fixes

Fixed a few javascript array issues, started on answering, declining, and ending.