Add debug for javascript