added join to some script elements; more to go