whole load of changes using jquery plugin for arranging notes, and general simplifications