modified screen.js script