javascript: added HTML how-to and minor changes