Why was this Javascript code removed?