DOM based script runner