Updated script for Chrome