Fix movement of arrow-right/arrow-down, also re-connected some javascript from original project