I figured that 0 and non-zero exits were C convention, not JavaScript so now, if failed, it returns NULL and if successful, it doesn't return anything