Execute some JavaScript commands