changed a.js to return 0 instead of null