Cleans up code, adds more error handling, cleans JSHint errors.
Cleans up code, adds more error handling, cleans JSHint errors.

jbeezley/girder,sutartmelson/girder,kotfic/girder,Xarthisius/girder,essamjoubori/girder,adsorensen/girder,salamb/girder,data-exp-lab/girder,RafaelPalomar/girder,manthey/girder,opadron/girder,chrismattmann/girder,essamjoubori/girder,manthey/girder,adsorensen/girder,adsorensen/girder,girder/girder,data-exp-lab/girder,kotfic/girder,RafaelPalomar/girder,adsorensen/girder,opadron/girder,kotfic/girder,chrismattmann/girder,RafaelPalomar/girder,RafaelPalomar/girder,sutartmelson/girder,sutartmelson/girder,data-exp-lab/girder,Xarthisius/girder,essamjoubori/girder,manthey/girder,Xarthisius/girder,jbeezley/girder,msmolens/girder,chrismattmann/girder,jbeezley/girder,essamjoubori/girder,jbeezley/girder,salamb/girder,salamb/girder,opadron/girder,manthey/girder,msmolens/girder,sutartmelson/girder,data-exp-lab/girder,adsorensen/girder,salamb/girder,Xarthisius/girder,opadron/girder,msmolens/girder,Kitware/girder,Xarthisius/girder,Kitware/girder,Kitware/girder,salamb/girder,msmolens/girder,RafaelPalomar/girder,msmolens/girder,kotfic/girder,chrismattmann/girder,kotfic/girder,Kitware/girder,opadron/girder,data-exp-lab/girder,chrismattmann/girder,sutartmelson/girder,girder/girder,essamjoubori/girder,girder/girder,girder/girder