Added javascript execution handler