Scoping
Globally scoped javascript objects should be avoided. In the rare instances where they are required, such as when a public JS api is being provided, the functions and objects should be nested within the "pho" global namespace object such that window.pho.YOUR_OBJECT becomes the call for clients to make.
<script type="text/javascript"> // create the namespace if not already done so if(typeof pho == "undefined"){ pho = {}; } pho.publicFunction = function(){...} </script>