Adding missing brackets to jquery function in layouts