Stubbing out js logic