test js media object