fix page not loading, change classJson/array variable structure