Perfect Javascript code not working for me?

Printable View