I think that yiiyuiclientscript\interfaces would be a better namespace (the file would naturally have to be moved under src/interfaces), especially if you opt for a similar approach regarding #3. It's up to you though.