Cloned tests for js

Also added a test for too many args to a block.
Fixed .gitignore in samples consequent on
Kim's renaming of the samples.