Bug with AudioContext fixed
Updated functions

Updated functions, now they can work with all browsers that support
AudioContext.