Reorganizing, added jQuery, and fixed controller to retreive notes