bug fixed and small styling change
removed debugger
Merge pull request #51 from dontmitch/javascript_bug_with_condtions_commit

bug fixed and small styling change