Add JavaScript part and Templates part to building