Javascript update debug 2