Creating a list of users using constructor with javascript.