Fixed clear button behaviour, tidied up some javascript
Merge pull request #24 from ministryofjustice/dev-clive

Fixed clear button behaviour, tidied up some javascript