loading scripts with require