Cleaned up the javascript code getting rid of console logs and commented...

... out code.