Refactor Nbody

Issue #100

Reviewed by Diego Pinheiro

- Remove duplicated and dead code
- Use JSLint in all source files