More style changes; placed all tadc functions in locallib.php; added a module javascript file