Mark Wells bought items online using school funds while employed at the primary school in West Lothian.