That's a good place to start.
In Bitlash, you'd approach it a little differently:
You'd do the usual initialization in a function named 'startup':
function startup {pinmode(13,1);}
…and then you'd type (or send from a PC side program):
d13=1 // to turn it on, and
d13=0 // to turn it off
Once you've got it under command line control, Commander can put it on the web.
-br