Update js with mousedown/keydown fixes