added more detailed js documentation
added Safari support for flex add-on
cleanup