started changing citations js to helper method