[code] Added refactored FreeScript