formatted code and changed js for flickr data