Fixed JavaScript. Cosmetic changes.