Processing.js is a script language interpreted by Javascript (interpreted, not compiled to JS as far as I know), you could take a look at that approach. Processing.js is specifically tailored to produce graphics onto a webpage, so it may not be exactly what you need, but it is an example of having two scripting languages on one website.
(Processing is a separate graphics language which was first run in a Java environment (as well as other implementations), before the Canvas element was conceived and another implementation based on Javascript was made.)
What it seems you want is 'Javascript with my own features'. This is only possible if you (or someone else) build a JS+yourfeatures interpreter on top of Javascript. I don't think that's a very plausible thing to do though. Processing.js's solution is probably a good middle ground, where you separate your own language from actual Javascript - that is, if your language and the regular JS can be separated.
<script language="javascript">
var person_exists = true; // native js
interpret("animal"); // your language interpreter. Interpret function looks through the DOM for a script tag with the "myscript" language and the 'animal' ID.
console.log(person_exists) // native js
</script>
<script language="myscript" id="animal">
Animal eats banana // your language
</script>
Still, I'd reccommend thinking about what you ''really'' want before skipping to the "I know, I'll develop my own language!" part. What's wrong with
Animal = {
eats: function(fruit) {
console.log('om nom nom nom ' + fruit);
}
};
var person_exists = true;
Animal.eats(banana);
console.log(person_exists);
for example?