moved scripts and index definition to api project