split traitify js client from widgets