Changed getItemById to a filter with getFirstItem() to retrieve the first item from that collection
Fixed code standard / code formatting