changing NULL to null for js