How to run an arbitary script on the client end?