Updated index and added oauth javascript