better error handling and instructions, moved tutorial.html to localhost