Javascript Events driven through the data attribute