moved require into js dir