moved btapp.js