small fix to js