Suggestion to get rid of some brackets:
if ( mouseX > x & mouseX < x+ w & mouseY > y & mouseY < y+ h ) return true;