Reanme ifEmpty prototype function
Add non-standard findIndex function if missing
Scroll to top when switching note preview
Add import/export functionality
Improve import functionlity

Allow json input
Fix last line clipping bug
Attempt to fix IE bug