Facia tool js structure

Move js structure in line with `common`