fixing index call and meta.js