Original code from http://code.google.com/p/tiny-js/ rev. 79
Merge https://github.com/ZiCog/tiny-js-propeller