first version of client gif
pull to separate js file