JavaScript Program to Find Sum of First n Numbers