minor cleanup changes

* Add type to <script> in modscripts.php
* Rmv unused code in register.php