move js from matrix page
fix homebase variable