Javascript reference updated