changed deps(for b-link) and divided some files into priv and js