remove best in place javascript - breaking jquery