Updated Javascript with Volume control API