a bug is fix on javascript array assignment operation

- exception: Invalid left-hand side in assignment is occurred on chrome 35.
- refactoring array assignment on JavaScript