Laverna is a JavaScript note taking application with Markdown editor and encryption support. Consider it like open source alternative to Evernote.