refactor demos, fix demos for ios
fixed demos for safari/osx
ie10 compatability
ie8-9 compatability