update why javascript