fixed how isEmployee() gets called in main.js