javascript environment / modified old article