cleaned up JS dependencies.
the add view now uses jQuery.
added support for drafts.