Weight log jquery implementation