fixed web player javascript bug