Updated index.js for fitvids