added net_weight to popup
refactored to have jsonFilename in global scope and used by both functions
Merge pull request #35 from richarddunks/code_cleanup

Code cleanup