send json-rpc on/off to Arduino Servo motor

Hi guys,

I am newbie and want to know how to send on/off command from javascript in my laptop to servo motor connected with Arduino?

Could you recommend me some articles and project has the same Idea to learn?

Thanks for all

Any Idea can help..or any documents recommended could help. thanks for all