adding critical js