loadscript and load stylesheet  function