Basic structure for javascript and api