inserting notes and some date jquery fixes