javascript syntax

You had some bracket issues in the javascript, and the doSomething()
function sucks so I got rid of it.
checkBinary function

Wasn't this function working when I sent it to you?  Why'd you guys
change it?
reading wrong values