Javascript Code Update