Moved javascript require into head