added main.js global ajax, login splash sees teacher or student