Minor JS fixes
Merge pull request #33 from edelbluth/js_fixes

Minor JS fixes