working on plnkr with josh api