Changed alcOpenDevice so it works with Safari 6 and newer.

I changed the alcOpenDevice function to make it work with Safari 6 and newer. Indeed in this browser typeof(webkitAudioContext) returns "object". Now, I'm not a JS expert, so not sure about the right operator to use (!= or !==).