Fix various JS lint code smells
Merge pull request #27 from ministryofjustice/fix-js-smells

Fix various JS lint code smells