Don't route JavaScript requests via send_message

JavaScript requests use server's send_message() method to call
the handlers directly, not via send_message message :-)

Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>