Seperate JS file and questions implemented

JS has been moved into a seperate file, and asking questions is now
possible