Moved JSON and JS into seperate file