Completed migration to pure JS.