Moved demo initialization to index (instead of inside the script).