JavaScript Detect Page

if ( document.URL.includes("homepage.aspx") ) {
    //Code here
}
Spotless Swan