get flicker API via JavaScript