renamed vars and implemented function setAlertCount
Finished titleBar.js