started js function for instagram photos