JS warning and IE fixes. Improve sample HTML