Bug 1059144 - Refactored nodejs control script