fixing small js mistake