Headphones detection API draft for JS