Restored script data management for js