Improved java input reader; cleaning up marsRover.js
Cleaned up marsRover js implementation