I have some pages that reference javascript files.
The application exists locally in a Virtual Directory, i.e. http://localhost/MyVirtualDirectory/MyPage.aspx
Use ResolveUrl("~/")
~/ will get to you the root of your application, virtual or otherwise