Added scripting of robots through JavaScript