Split out js