Fixes an issue where two samples were interchanged in the index.html and index.js

Also updates the sample app creation script to support sample app file paths with white spaces;