adjust asset path in layout
move adapter define to local.js