Add base code for yapp.js