Isn't that the same as running it directly in the browser? I know that works fine. I suppose it is a solution to the issue, though more of a workaround than solving the actual problem. Unless you have a good idea of how to debug the problem though, it is probably the way to go.