split out js into views/collections