Load json works properly, due to same orgin policy only when running the page on a server