refactoring: remove ScriptPacker from Script class; add method to update current Script instance from cursor set to a specific position