This app is great. It not only lets you write code but it allows you to test your code right in the app. Its totally free and there is very little advertisement. This app is a new favorite of mine.
Cuzzy1 about Javascript-1