Take Integer Input In Javascript Object