Fixed small issue with require loading the main script.