Remove api.js
Refactor
Refactor anyrun tests