Added demo html and fixed init issues