Araq/Nimrod — pull request #1484 by def- (2014-08-15 17:35:19+00:00)
Title: Fix swap in jsgen

Swap didn't work before, for example here:
```nimrod
proc selectionSort[T](a: var openarray[T]) =
let n = a.len
for i in 0 ..