Here are answers to your questions:
First question: It is not possible to configure ActiveSMS to make temporary connection to the GSM Modem. By design, ActiveSMS makes a permanent connection to the GSM Modem and holds the comms port open.
Second question: The COM Component can be used from via JavaScript. Using the COM Component you will be able to send message from JavaScript.