First, just to clear this up, I did not post this is the wrong place. I know the difference between "Java" and "Javascript"
I'm working on a project where I want to allow a simple, no intense programming required, way for users to create custom functionality. This is a simplified view of my program, but works for this discussion: My program works by running self contained chunks of Java (not javascript), but I want users to be able to define their own chunks of code to run in Javascript.
My user base tends to be techy, but they are not programmers. A full blown programming language would be more than they want to deal with. Javascript is much easier to use and get started with. You'll notice in my title I'm fine with any scripting language at all. The thing is, I didn't want to just pull some random language out of no where that I made up and force users to learn it. I want something more standard, that they might already know. Is there a way or a library I could use to define a customized javascript-esq interpreter in Java (I would need to replace the DOM with objects in my program). Or is there some standard Design Pattern to use? Performance is not a big deal, which is why I'm sticking with Java and not writing it in C.
Alternatively, is there a simple scripting standard that I can use. As in, some other standard scripting language or format that I didn't just pull out of thin air.