Improved the explanations. Improved the java script error reporting.