test headJS for speed