More JS debugging

more alerts for ensuring proper loading