Continuing with Javascript

I also fixed a couple typo-s I noticed when trying to test.