Core functionality update

each json file will be loaded just once
JS interface to get data via code
removed debug shitt