Changed to using `js-` prefix on all dynamically added classes so the optimize step won't remove them.