fixed javascript in example application
fixed documentation
Better authorization form: close #15