P o r t i n g B s t o W o r d p r e s s Make theme: /var/www/z/wordpress/wordpress/wp-content/themes/twentytwelve-child/ and this folder-tree there: js/ play app_adapter.js functions.php header.php style.css apparently: functions.php is a glue between db and js-objects on live site; header.php is a change in Wordpress core, temporary patch; script and data flow: functions.php:get_post_scripts_btb() does: gets post and comments from database extracts gamions from there and jsonifies them header.php sets window.tp$ namespace injects engine, app.js injects jsoned data by assigning: tp$.bpressScripts = ; sets