Javascript update debug 3