Solved prob3 in JS
Solved more problems in JS