other js fixes due to latest jquery version