minor change to js