Get all items from a list using javascript filter method