Move data.api / click events outside $(function(){}) when loaded

Also, modified init/ data api comments