Dereferencing JavaScript values