Javascript exercise for Awanish