simple sorting in javascript
array absurdity in javascript