Cleanup leanModal.js

Proper indentation
Use double-quotes instead of single-quotes
Extract open modal behavior into a separate function
Allow directly calling openModal on a modal element

This will allow developers to call the modal on document ready
Add way to open modal without clicking into documentation