[aphrodite] Fix deprecation warnings on js