updated insertEntry to save the jQuery search - performance