Blockley (https://code.google.com/p/blockly/) is a programming language similar to scratch made by Google that can export Javascript code. However, there was no way to easily write Javascript code to run the project.