removed if statement and made simple jquery