quick fix to js for arrow keys