Remove log statement and improve jquery selector