For MobileSafari on iOS 8, remove .disconnect()
update obsolete methods and change the togglePlay function
Merge branch 'for-ios8'