Migrated entity and NYTimes api integration into JS from PHP.