updated demo.html and loadFromFile to be able to pass options like
intelligentLoop