JavaScript tests fix && formatting.