some jQuery love for client js... empty-note prevention (hopefully)