Starting code example cleanup process

made changes to examples to use double quotes and spacing. Checked also the html and javascript indentation.