Minor javascript bug
Merge pull request #673 from adamrp/minor_js_bug

Minor javascript bug