cleanup the js and the way i use tumblr api