updated gapi to be more generic

request to play video thumb is placed in index.ejs