Using While Loop In Javascript Example Push