Worked on windows installer and added code to throw R errors as JS exceptions so that the error messages show up in JS error console.