v. 3.1

Corrected some serious bugs that occured in the injection of the
javascript files into the document