Add interpolation with pure javascript