Added javascript to set variables for abstractions