Update script to search element by id not position.