Modified Javascript