fixed javascript error
Merge pull request #22 from dcornnell/front_end

fixed javascript error