frontend loader script