Javascript solution

Can you make this aligned with the rest?