Moved the $.getJSON outside of marker function