seperated out js