added flicker API code back into index.html