Final Javascript

Tried to improve indenting. On Notepad++, the indenting is well lined up, as supposed to, when I copy the code here, it all changes...