added anonymous method with click event, added data attr in li same as id of div.module, optimized code