debug for js speed