javascript bug patch