Fixed notes not showing up on Chrome

made some variable scope changes
Notes no longer load when notes is disabled