added checkForNewChat function. debugged(ish) getMessages function. called timeoutRefresh() in doc ready. moved username input. went over jake's additions (as of sept 20, 2013); tried to make sense of them and add them to my files. added obnoxious text to various places.
also called getMessages() inside of checkForNewChat(). put ;s everywhere. but getting -Uncaught TypeError: Cannot call method 'template' of undefined-. i should know the answer, but at the moment i dont