Is it possible to run JavaScript commands from inside a project?
Jason
Develop games in your browser. Powerful, performant & highly capable.
You're looking for the eval() method:
http://www.w3schools.com/jsref/jsref_eval.asp
Currently this isn't implemented yet but someone might make a quick plugin for it. You should be wary using it if you're planning on submitting your games to certain arcades/other websites as many will for good reason disallow functions such as this for security reasons.
An alternative is to make a plugin (written in javascript) that makes the javascript calls you need.