take some js references out for test