updates for javascript