Fixed Github reviews. Programmed by Michael.

The calls to the Ajax Error alert have been moved to a centralised file, as
per the github reviews for this feature (Feature #120). Additionally, the test
on adding the input to the session has been removed from the test to remove the
input from the session.