Use wordpress's way of loading js and managing dependencies. script:// img:// and css:// are also now parsed appropriattely.