Error to make it work it work on node v0.10

Jira Issue: WP-1024