minor changes to text in the main page
correcting JS errors