move js into js/layout-modes, js/docs & js/vendor