Move scripting from theme to base context. Implement JS based maximization.