defines callable, method-chained js components