Moved require into html