Added javascript executing functionality