javascript backend: fixed if test on function
updated nodejs fake python modules: os and subprocess
integrated export to mobile using phonegap, automatically previews in the android emulator.