added nulls to js