Araq/Nimrod — pull request #1485 by def- (2014-08-15 17:50:05+00:00)
Title: Fix CopyStr (substr in system.nim) for javascript target

For example this printed ba instead of bar:
```nimrod
var x = "foobar"
echo x.substr(3)
```