moving 2 helper functions to utils.php
simplified the titles function
Separating scripts loading per-module