Refactor postcode lookup js to use MOJ standards