Interface for a server side script to call javascript events/actions