Fixed some JS error. Wasn't breaking the app, but gotta get rid of those console errors, right?