Script_console is a project mainly written in JavaScript, it's free.
A MuseScore plugin to run and test QtScript scripts in real time in MuseScore
More info http://musescore.org/en/project/console