Javascript update debug 1