I don't know why webos use javascript as primary programming language.
Programmer just not used to use javascript to program a application.It has not good debug environment. And Syntax check is not good.
I don't used to it.
In my oppinion, android uses java as primary language is better choise.
Anyway, I have to learn javascript.