Fixed some JS stuff. Still can't access JSON object directly.