Updated index file and added js oauth