Javascript: Test update