splitting out js.