diffDesign javascript