changing the required script
Adding the "required" script on a separate file

props @fovoc