Getting JSON to work

minor tweaks and added test functionality to our javascript file